package org.zkdemo.snmp;

import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class SNMPManager
{
    
    public static final ExecutorService service = Executors.newFixedThreadPool(100);
    
    public static void main(String[] args) throws IOException
    {        
        for (int ip1 = 67; ip1 <= 68; ip1++)
        {
            for (int ip2 = 70; ip2 < 256; ip2++)
            {
                SnmpPinger client = new SnmpPinger("udp:10.10." + ip1 + "." + ip2 + "/161");
                service.execute(client);
            }
        }
        
        service.shutdown();
        System.out.println("Done.");
    }
    
}
